<#include "custom.include">
<#assign className = table.className>   
<#assign classNameLower = className?uncap_first>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="Content-Language" content="zh-CN">
		<title> 企脉--新建产品 </title>
		
		<!--时间选择插件-css-->
		<link rel="stylesheet" type="text/css" href="../../resource/plugins/datetimepicker/css/jquery.datetimepicker.css"/>
		<!--font-awesome-->
		<link rel="stylesheet" type="text/css" href="../../resource/font-awesome/css/font-awesome.min.css"/>
		
		<!--css引入-->
		<link rel="stylesheet" href="../../resource/css/base.css" />
		<link rel="stylesheet" href="../../resource/css/common.css" />
		
	</head>
	<body>
		
		<!--头部-->
		<div class="header">
			
		</div>		
		<!--头部-->			
		
		<!--内容-->
		<div class="container clear">
			
			<!--右侧内容-->
			<div class="bsRight">
				<h1 class="bsrTit" id="pageTitle"></h1>
				<!--发布内容-->
				<div class="bsrCon" e-fun="tab">
					<!--通知接受人-->
					<div class="mt10">
						<form action="" id="form">
							<ul class="bsrRelList mt10" e-fun="tab">
								<li class="clear">
									<span class="bsrRelTit">产品名：</span>
									<input type="text" class="bsrRelIpt" name="${classNameLower}Name" id="${classNameLower}Name" placeholder="产品名"/>
								</li>
								<li class="clear">
									<span class="bsrRelTit">封面：</span>
									<a id="aUploadImage" target="_blank">
										<img id="uploadImage" src="../../resource/images/imgs/gs-logo.png" width="320" height="180" />
									</a>
									<img id="loading" src="../../resource/images/loading.gif" width="30" height="30" style="display:none;" />
									<span id="result"></span>
									<span id="fileDiv"></span>
								</li>
								<li class="clear">
									<span class="bsrRelTit"></span>
									<input type="text" readonly class="bsrRelIpt" name="" id="fileName" />
									<a class="bsrBtn" href="javascript:void(0);" id="btnFile" style="position:relative;">
										选择图片
										<input class="fileIpt" type="file" name="file1" id="file1"/>
									</a>
									<a class="bsrBtn" href="javascript:" id="btnUpload">上传图片</a>
								</li>
								<li class="clear">
									<span class="bsrRelTit">排序：</span>
									<input type="text" class="bsrRelIpt" name="${classNameLower}Sort" id="${classNameLower}Sort" placeholder="降序排序"/>
								</li>
								<li class="clear" e-tab-nav="sdtj">
									<span class="bsrRelTit">内容：</span>
									<!-- 加载编辑器的容器 -->
									<script class="editor" id="container" style="width:980px;height:400px;float:left;" name="content" type="text/plain">
										
									</script>
									<!-- 配置文件 -->
									<script type="text/javascript" src="../../resource/plugins/ueditor_jsp/ueditor.config.js"></script>
									<!-- 编辑器源码文件 -->
									<script type="text/javascript" src="../../resource/plugins/ueditor_jsp/ueditor.all.js"></script>
									<script type="text/javascript" src="../../resource/plugins/ueditor_jsp/lang/zh-cn/zh-cn.js"></script>
									<!-- 实例化编辑器 -->
									<script type="text/javascript">
										UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
										UE.Editor.prototype.getActionUrl = function(action) {
										    if (action == 'uploadimage' || action == 'uploadscrawl') {
										        return '../../ueditor/exe.do';
										    }else {
										        return this._bkGetActionUrl.call(this, action);
										    }
										}
										var ue = UE.getEditor('container');
									</script>
								</li>
								<li class="clear pt10">
									<span class="bsrRelTit"></span>
									<a href="javascript:" class="bsrBtn" id="btnSend">保存</a>
									<a href="javascript:" class="bsrBtn" id="btnPreview" pullName="popChooPre">预览</a>
									<a href="javascript:history.go(-1)" class="bsrBtn bsrBtnGrey" id="">取消</a>
								</li>
							</ul>
						</form>
					</div>
				</div>
			</div>
			
			<!--遮罩层-->
			<div class="popBg"></div>
			
			<!--预览-->
			<div class="popBox popAddRel popChooPre" name="popChooPre">
				<h3 class="popBoxTit">预览 <a href="javascript:void(0);" class="popClose"><img class="imgs" src="../../resource/images/close.png" alt="" /></a></h3>
				
				<!--模拟手机-->
				<div class="red-box">
					<!--bg-->
					<img width="100%" src="../../resource/images/iphone6.png" alt="" />
					<!--con-->
					<div class="red-con">
						<div class="p10" id="${classNameLower}Content">
						</div>
					</div>
				</div>
			</div>
			<!--预览 end-->
			
		</div>
		
		<!--底部-->
		<div class="footer"></div>
		
		
		<!--js引入-->
		<script type="text/javascript" src="../../resource/js/jquery.js"></script>
		<script type="text/javascript" src="../../resource/js/jquery.validate.js" ></script>
		<script type="text/javascript" src="../../resource/js/messages_cn.js" ></script>
		<script type="text/javascript" src="../../resource/js/config.js"></script>
		<script type="text/javascript" src="../../resource/js/ajaxfileupload_new.js"></script>
		<!--页面效果-->
		<script type="text/javascript" src="../../resource/js/common_new.js"></script>
		<script type="text/javascript" src="../../resource/js/simba.website.js"></script>
		<script type="text/javascript" src="../../resource/js/manager_2.0.js"></script>
		<script type="text/javascript" src="../../resource/js/${classNameLower}/${classNameLower}_add.js"></script>
		
		<!--时间选择插件-->
		<script src="../../resource/plugins/datetimepicker/js/jquery.datetimepicker.js"></script>
		<script type="text/javascript">
			$('#sendTime').datetimepicker();
		</script>
		
	</body>
</html>